package com.zmm.zebulon.module.system.biz.api.sensitiveword;

import com.zmm.zebulon.module.system.api.sensitiveword.SensitiveWordApi;
import com.zmm.zebulon.module.system.biz.service.sensitiveword.SensitiveWordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * description: 敏感词 API 实现类
 *
 * @author zebulon
 * package com.zmm.zebulon.module.system.biz.api.sensitiveword
 * name: SensitiveWordApiImpl
 * date 2024/1/7 22:10
 */
@Service
public class SensitiveWordApiImpl implements SensitiveWordApi {

    @Resource
    private SensitiveWordService sensitiveWordService;

    @Override
    public List<String> validateText(String text, List<String> tags) {
        return sensitiveWordService.validateText(text, tags);
    }

    @Override
    public boolean isTextValid(String text, List<String> tags) {
        return sensitiveWordService.isTextValid(text, tags);
    }
}
